/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.digitalize.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeesite.common.web.BaseController;
import com.jeesite.modules.digitalize.entity.ComponentLog;
import com.jeesite.modules.digitalize.entity.dto.BasePageQueryDto;
import com.jeesite.modules.digitalize.service.ComponentLogService;
import com.jeesite.modules.digitalize.util.response.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 族库-系统日志
 *
 * @author patronli
 * @version 2023-09-08
 */
@RestController
@Api(tags = "数字-系统日志")
@RequestMapping(value = "${adminPath}/componentLibrary/componentLog")
public class ComponentLogController extends BaseController {

    @Resource
    private ComponentLogService componentLogService;

    /**
     * 查询列表数据
     */
    @ApiOperation(value = "日志分页列表")
    @GetMapping(value = "/page")
    public ResultVo<Page<ComponentLog>> listData(@Validated BasePageQueryDto queryDto) {
        return componentLogService.pageList(queryDto);
    }

}